<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 pro_box_trapper_queue.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.0
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
$page_title = "Box Trapper";
include $root_path.'common.php';
include $root_path.'page_header.php';

$template->set_filenames(array(
	'body' => $root_path.$template_path.'mail/pro_box_trapper_queue.tpl')
);

$log_nav_bar = <<<EOFpacman
<cpanel BoxTrapper="logcontrols($FORM{'logdate'},$FORM{'account'})">
EOFpacman;

// Previous datestamp and date
$temp = explode("&logdate=", $log_nav_bar);
$temp2 = explode('">', $temp[1]);
$temp3 = explode('</a>', $temp2[1]);
$navbar['prev_date'] = trim(str_replace("&lt;", "", $temp3[0]));
$navbar['prev_datestamp'] = $temp2[0];

// Next datestamp and date
$temp2 = explode('">', $temp[2]);
$temp3 = explode('</a>', $temp2[1]);
$navbar['next_date'] = trim(str_replace("&gt;", "", $temp3[0]));
$navbar['next_datestamp'] = $temp2[0];

// Current date
$temp = explode("<td align=center>", $log_nav_bar);
$temp2 = explode("</td>", $temp[1]);
$navbar['current_date'] = trim($temp2[0]);

$template->assign_vars(array(
	'PREV_DATE' => $navbar['prev_date'],
	'U_PREV_DATE' => 'pro_box_trapper_log.php?account='.$HTTP_GET_VARS['account'].'&logdate='.$navbar['prev_datestamp'],

	'NEXT_DATE' => $navbar['next_date'],
	'U_NEXT_DATE' => 'pro_box_trapper_log.php?account='.$HTTP_GET_VARS['account'].'&logdate='.$navbar['next_datestamp'],

	'CURRENT_DATE' => $navbar['current_date'],
	
	'ACCOUNT' => $HTTP_GET_VARS['account'],
	));


//
// Woohoo! All done!
//
$template->pparse('body');




include $root_path.'page_tail.php';




?>

